Disable pre-gc-heap-verification in debug builds There is enough evidence that the memory corruption bugs are manifesting during the GC. So verifying the heap before GC won't help in identifying any bugs. On the other hand, it adds enough overhead to cause some tests' timeout. Test: art/test/testrunner/testrunner.py --host --debug Change-Id: Ia6480097c3259255e1ca6a6a885a16928b39e453 
diff --git a/cmdline/cmdline_types.h b/cmdline/cmdline_types.h index 524f181..14a1f89 100644 --- a/cmdline/cmdline_types.h +++ b/cmdline/cmdline_types.h 
@@ -550,7 +550,7 @@  // These defaults are used when the command line arguments for -Xgc:  // are either omitted completely or partially.  gc::CollectorType collector_type_ = gc::kCollectorTypeDefault; - bool verify_pre_gc_heap_ = kIsDebugBuild; + bool verify_pre_gc_heap_ = false;  bool verify_pre_sweeping_heap_ = kIsDebugBuild;  bool generational_gc = kEnableGenerationalGCByDefault;  bool verify_post_gc_heap_ = kIsDebugBuild;